﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Shapes;
using System.Windows.Media;
using System.Windows;
using TJDevHouse.Starcraft.Game;

namespace TJDevHouse.Starcraft.MapAnalyser.MapDrawing
{
	class StartingPositionsMapLayer : MapLayer
	{
		private Color StartingPositionColor = Colors.Yellow;

		protected override void RenderLayer(MapDisplay display)
		{
			SolidColorBrush brush = new SolidColorBrush(StartingPositionColor);
			foreach (StartingLocation sl in display.Map.StartingLocations)
			{
				BuildTile pos = sl.BuildTile;
				Path path = display.CreateElipsePath(brush, 1, 1);

				display.PositionElementByBuildTile(path, pos);
				LayerCanvas.Children.Add(path);
			}
		}


	}
}
